package lemo.m1;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.servlet.http.HttpSession;
import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

public class ManCountLister implements HttpSessionListener {

    private static final Logger logger = LoggerFactory.getLogger(ManCountLister.class);

    @Override
    public void sessionCreated(HttpSessionEvent se) {
        HttpSession session = se.getSession();
        logger.info("------------>sessionCreated<--------------- [{}]",session.getId());
    }

    @Override
    public void sessionDestroyed(HttpSessionEvent se) {
        logger.info("------------>sessionDestroyed<---------------");
    }
}
